﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Common.Utilities.Rules
{
    /// <summary>
    /// 
    /// </summary>
    public interface IRuleWorker
    {
        /// <summary>
        /// allow worker within context to retrieve and set values
        /// </summary>
        Dictionary<string,object> RuleContext{ get; set;}
        /// <summary>
        /// major method to execute rule
        /// </summary>
        /// <param name="objToEvaluate"></param>
        /// <returns></returns>
        bool Evaluate(object objToEvaluate);
    }
}
